package cn.snowheart.command;

import cn.snowheart.command.command.Command;

/**
 * 遥控板类
 *
 * @author liuwanxiang
 * @version 2019/07/04
 */
public class SimpleRemoteControl {

    private Command command;

    public SimpleRemoteControl() {
    }

    public void setCommand(Command command) {
        this.command = command;
    }

    public void onClick() {
        command.execute();
    }

}
